package org.eiahe.hr.interview.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.eiahe.hr.interview.domain.InterviewBehaviorResultTypes;
import org.eiahe.hr.interview.service.InterviewBehaviorResultTypesService;
import org.eiahe.hr.interview.mapper.InterviewBehaviorResultTypesMapper;
import org.springframework.stereotype.Service;

/**
 * @author :zhangnn
 * @className :InterviewBehaviorResultTypesServiceImpl
 * @description: TODO
 * @date 2025-08-20 14:21:00
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class InterviewBehaviorResultTypesServiceImpl
    extends ServiceImpl<InterviewBehaviorResultTypesMapper, InterviewBehaviorResultTypes>
    implements InterviewBehaviorResultTypesService {
    @Override
    public InterviewBehaviorResultTypes selectByCode(String resultCode, Long bankId) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<InterviewBehaviorResultTypes>()
            .eq(InterviewBehaviorResultTypes::getResultCode,resultCode)
            .eq(InterviewBehaviorResultTypes::getBankId,bankId)
        );
    }
}
